package com.pubsys.main.client.rpc.buscareferencias;

import java.util.ArrayList;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.pubsys.main.shared.exceptions.RPCExceptions;
import com.pubsys.main.shared.model.FiltroReferencia;
import com.pubsys.main.shared.model.Referencia;

@RemoteServiceRelativePath("BuscaReferenciasRPC")
public interface BuscaReferenciasRPC extends RemoteService {
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static BuscaReferenciasRPCAsync instance;
		public static BuscaReferenciasRPCAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(BuscaReferenciasRPC.class);
			}
			return instance;
		}
	}
	
	public ArrayList<Referencia> buscaReferenciaUsandoFiltro(FiltroReferencia filtro) throws RPCExceptions;
	
}
